package com.hopu.aop.proxy;

public class ComputerTest {

    public static void main(String[] args) {
        //创建被代理者对象
//        IComputerSell miFactory = new MiComputerFactory();
        IComputerSell miFactory = new HuaweiComputerFactory();
        //创建代理者对象
        IComputerSell miShop = new ComputerShop(miFactory);
        //调用代理者方法
        miShop.sellComputer();
    }
}
